-- CALC_CAREER_219_UPGRADE_BONUS

-- 计算称号大附魔师升级奖励
-- @param level    特性等级
-- @param feature  特性id
return function(level, feature)
    local bonusList = {};
    local itemBonus = {};

    -- 如果学习过“符文师”称号
    if CareerM.hasJoined(206) then
        -- 奖励附魔师符文，天空副本中获得无效的对应物品
        local dungeonId = DungeonM.getDungeonId();
        if type(dungeonId) == "number" and dungeonId > 0 and
            DungeonAreaM.query(dungeonId, "type") == "sky_instance" or 
            type(dungeonId) == "number" and dungeonId > 0 and
            DungeonAreaM.query(dungeonId, "type") == "activity" then
            itemBonus = { 1, 7940, 1 };
        else
            itemBonus = { 1, 7313, 1 };
        end
    else
        -- 奖励淬火精华
        itemBonus = { 1, 7303, 2 };
    end

    table.insert(bonusList, itemBonus);
    return bonusList;
end

